package com.example.kiratest.EasyExcel.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ColumnWidth(20)
public class Excel {

    @ExcelIgnore
    private Integer id;

    @ExcelProperty(value = "用户姓名",index = 0)
    private String name;

    @ExcelProperty(value = "用户Id",index = 1)
    private String uesrId;

    @ExcelProperty(value = "居住地址",index = 2)
    private String location;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
